import Vue         from 'vue'
import App         from './App.vue'
import router      from './router'
import axios       from 'axios'
import store       from './store/store.js'
import {isProdEnv} from '@/common/config'


//我自己的
import './assets/css/init.scss'
import './assets/css/utils.scss'

//饿了吗UI
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@/assets/css/element-variables.scss'

//
import WIcon   from '@/components/WIcon.vue'
import WLayout from '@/components/WLayout.vue'
import WBlock  from '@/components/WBlock.vue'
import WDialog from '@/components/WDialog.vue'


Vue.use(ElementUI)
Vue.component(WIcon.name, WIcon)
Vue.component(WLayout.name, WLayout)
Vue.component(WBlock.name, WBlock)
Vue.component(WDialog.name, WDialog)

isProdEnv || require('../mock')

Vue.config.productionTip = false;
Vue.prototype.$http      = axios;




new Vue({
	router,
	store,
	render: h => h(App)
}).$mount('#app')
